package bb.lanxing.model.database;

import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;
import android.os.Parcel;
import android.os.Parcelable;
//import com.orm.SugarRecord;
//import com.orm.dsl.Table;
//import com.orm.query.Select;

import org.litepal.LitePal;
import org.litepal.crud.LitePalSupport;

import java.util.List;


public class DeviceInfo extends LitePalTableBase {


    private String address;
    private String firmwareVersion;
    private String hardwareVersion;
    private String manufacturer;
    private String model;
    private String remainingKm;
    private String remainingMemory;
    private String serial;
    private String softwareVersion;
    private String totalMemory;




    public static DeviceInfo getDeviceInfoToAddress(String str) {

        DeviceInfo d = LitePal.where("address=?", str).findFirst(DeviceInfo.class);

        return d;

    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getFirmwareVersion() {
        return firmwareVersion;
    }

    public void setFirmwareVersion(String firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }

    public String getHardwareVersion() {
        return hardwareVersion;
    }

    public void setHardwareVersion(String hardwareVersion) {
        this.hardwareVersion = hardwareVersion;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getRemainingKm() {
        return remainingKm;
    }

    public void setRemainingKm(String remainingKm) {
        this.remainingKm = remainingKm;
    }

    public String getRemainingMemory() {
        return remainingMemory;
    }

    public void setRemainingMemory(String remainingMemory) {
        this.remainingMemory = remainingMemory;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public String getSoftwareVersion() {
        return softwareVersion;
    }

    public void setSoftwareVersion(String softwareVersion) {
        this.softwareVersion = softwareVersion;
    }

    public String getTotalMemory() {
        return totalMemory;
    }

    public void setTotalMemory(String totalMemory) {
        this.totalMemory = totalMemory;
    }


}
